function findLxInfo() {
	$certusUtils.ajax("findProLxInfo", {
		"proId": proId
	}, function (response) {
		var data = response.data.lxMap;
		//是否有立项信息
		if (data.id == undefined) {
			$("#hasLxInfo").hide();
			$("#noLxInfo").show();
		} else {
			var proType = data.pro_type;
			if (proType == "ZL") {
				$("#proType").html("战略类");
			} else if (proType == "YF") {
				$("#proType").html("研发类");
			} else if (proType == "XS") {
				$("#proType").html("销售类");
			} else if (proType == "BM") {
				$("#proType").html("部门类");
			} else if (proType == "SW") {
				$("#proType").html("事务类");
			} else {
				$("#proType").html("测试类");
			}

			$("#hasLxInfo").show();
			$("#noLxInfo").hide();
			if (proType == "XS") {

				$("#proArea").html(data.pro_area);
				$("#cusName").html(data.cus_name);
				if (data.is_compare == "0") {
					$("#isCompare").html("无");
				} else {
					$("#isCompare").html("有");
				}
				$("#divineSignDate").html(data.divine_sign_date);
				$("#divineHkDate").html(data.divine_hk_date);
				$("#cusPolicy").html(data.cus_policy);
				// $("#pduName").html(data.pduName);
				// $("#delName").html(data.delName);
				// $("#selName").html(data.selName);
			} else if (proType == "ZL" || proType == "SW" ||
				proType == "BM") {
				$("#showArea").hide();
				$("#showCus").hide();
				$("#showCompare").hide();
				$("#showSign").hide();
				$("#showHk").hide();
				$("#showPolucy").hide();
				$("#showPdu").hide();
				$("#showDel").hide();
				$("#showSel").hide();
			} else {
				$("#showArea").hide();
				$("#showCus").hide();
				$("#showCompare").hide();
				$("#showSign").hide();
				$("#showHk").hide();
				$("#showPolucy").hide();
				$("#showPdu").hide();
				$("#showDel").hide();
				$("#showSel").hide();
			}

            var memberList = response.data.mebMap;
            for (var i = 0; i < memberList.length; i++) {
                var codes = memberList[i].proRoleCode.split(",");
                for (var j=0;j<codes.length;j++){
                    //indexOf 大小写敏感
                    if (codes[j].indexOf("XMJL")>-1) {
                        $("#mgName").html(memberList[i].userName);
                    }
                    if (codes[j].indexOf("CPJL")>-1) {
                        $("#pduName").html(memberList[i].userName);
                    }
                    if (codes[j].indexOf("JFJL")>-1) {
                        $("#delName").html(memberList[i].userName);
                    }
                    if (codes[j].indexOf("XSJL")>-1) {
                        $("#selName").html(memberList[i].userName);
                    }
                }
            }

			$("#proName").html(data.pro_name);
			$("#proNo").html(data.pro_no);
			if (data.pro_lv == "1") {
				$("#proLv").html("低");
			} else if (data.pro_lv == "2") {
				$("#proLv").html("中");
			} else {
				$("#proLv").html("高");
			}

			$("#clueDesc").html(data.clue_desc);
			$("#competitor").html(data.competitor);
			$("#proTarget").html(data.pro_target);
			$("#lxDesc").html(data.lx_desc);
			$("#result").html(data.result);

			$("#divineMoney").html(data.divine_money);


			if (data.lx_level == "1") {
				$("#lxLevel").html("低");
			} else if (data.lx_level == "2") {
				$("#lxLevel").html("中");
			} else {
				$("#lxLevel").html("高");
			}
			// 项目目标
			var prointColumns = [{
				id: 'proTarget',
				title: '项目目标',
				type: 'string',
				columnClass: 'text-left',
			}, {
				id: 'finishTime',
				title: '完成时间',
				type: 'string',
				width: 130,
				columnClass: 'text-center',
				resolution: function (value) {
					var content = '';
					if (value == "") {
						return content;
					} else {
						var date = new Date(value);
						content = $.fn.dlshouwen.grid.tools.dateFormat(date, "yyyy-MM-dd");
						return content;
					}
				}
			}
				// {
				//     id: 'operation',
				//     title: '操作',
				//     type: 'string',
				//     width: 75,
				//     columnClass: 'text-center',
				//     resolution: function (value, record, column, grid, dataNo, columnNo) {
				//         var content = '';
				//         content += '<button class="btn btn-xs btn-danger" onclick="deleteTarget(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
				//         return content;
				//     }
				// }
			];
			$("#targetContainer").empty();
			//项目目标列表
			var prointOption = {
				lang: 'zh-cn',
				ajaxLoad: false,
				extraWidth: 20,
				// loadURL:'url',
				exportFileName: '项目目标',
				datas: response.data.targetList,
				columns: prointColumns,
				gridContainer: 'targetContainer',
				tools: ''
			};
			var prointGrid = $.fn.dlshouwen.grid.init(prointOption);
			prointGrid.load();

			//项目指标
			var proinColumns = [{
				id: 'wntyName',
				title: '指标名称',
				width: 150,
				type: 'string',
				columnClass: 'text-center',
			}, {
				id: 'wntyDesc',
				title: '指标描述',
				type: 'string',
				columnClass: 'text-left',
			}, {
				id: 'finishTime',
				title: '完成时间',
				width: 100,
				type: 'string',
				columnClass: 'text-left',
				resolution: function (value) {
					var content = '';
					if (value == "") {
						return content;
					} else {
						var date = new Date(value);
						content = $.fn.dlshouwen.grid.tools.dateFormat(date, "yyyy-MM-dd");
						return content;
					}
				}
			}
				// {
				//     id: 'operation',
				//     title: '操作',
				//     width: 60,
				//     type: 'string',
				//     columnClass: 'text-center',
				//     resolution: function (value, record, column, grid, dataNo, columnNo) {
				//         var content = '';
				//         // content += '<button class="btn btn-xs btn-info" onclick="editWarn('+record.id+');"><i class="fa fa-edit"></i> 编辑</button>';
				//         // content+=' ';
				//         content += '<button class="btn btn-xs btn-danger" onclick="deleteWarn(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
				//         return content;
				//     }
				// }
			];
			$("#proin1Container").empty();
			var proinOption = {
				lang: 'zh-cn',
				ajaxLoad: false,
				extraWidth: 20,
				// loadURL:'url',
				exportFileName: '项目指标',
				datas: response.data.warrList,
				columns: proinColumns,
				gridContainer: 'proin1Container',
				tools: ''
			};
			var proinGrid = $.fn.dlshouwen.grid.init(proinOption);
			proinGrid.load()
			//节点信息
			var nodeFlag = data.node_flag;
			var step = 0;
			var count = 0;
			var tab = '<table class="ui-stepLayout" border="0" cellpadding="0" cellspacing="0">';
			if (nodeFlag == 6) {
				step = 4;
				tab += '<tr><td class="ui-stepInfo"><a class="ui-stepSequence">1</a>' +
					'<p class="ui-stepName">发起申请</p></td>' +
					'<td class="ui-stepInfo"><a class="ui-stepSequence">2</a>' +
					'<p class="ui-stepName">领导审批</p></td>' +
					'<td class="ui-stepInfo"><a class="ui-stepSequence">3</a>' +
					'<p class="ui-stepName">填写商务预测信息</p></td>' +
					'<td class="ui-stepInfo"><a class="ui-stepSequence">4</a>' +
					'<p class="ui-stepName">完成</p></td>' +
					'</tr>';
				count = 4;
			} else {
				tab += '<tr><td class="ui-stepInfo"><a class="ui-stepSequence">1</a>' +
					'<p class="ui-stepName">发起申请</p></td>' +
					'<td class="ui-stepInfo"><a class="ui-stepSequence">2</a>' +
					'<p class="ui-stepName">领导审批</p></td>' +
					'<td class="ui-stepInfo"><a class="ui-stepSequence">3</a>' +
					'<p class="ui-stepName">完成</p></td>' +
					'</tr>';
				count = 3;
			}
			tab += '</table>';
			$("#nodeTab").html(tab);
			if (nodeFlag == 1) {
				step = 1;
			} else if (nodeFlag == 2) {
				step = 2;
			} else if (nodeFlag == 3 || nodeFlag == 4) {
				step = 3;
			} else if (nodeFlag == 5) {
				step = 1;
			}

			stepBar.init("stepBar-1", {
				step: step,
				change: false,
				animation: true
			});

			// 重置流程效果宽度
			var barWidth = $("#stepBar-1").width();
			var itemWidth = Math.floor((barWidth * 0.9) / (count - 1));

			$("#stepBar-1").find(".ui-stepLayout").width(Math.floor(barWidth * 0.9 + itemWidth));
			$("#stepBar-1 .ui-stepInfo").width(itemWidth);
			$("#stepBar-1").find(".ui-stepLayout").css({
				"margin-left": -Math.floor(itemWidth / 2) + 10
			});

			var calc = 100 / (count - 1);
			var curProcessWidth = calc * (step - 1) + "%";
			$("#stepBar").find(".ui-stepProcess").width(curProcessWidth);
		}
	});

	//查询审批节点记录
	// $certusUtils.ajax("findLxNodeList", {
	//     "proId": proId
	// }, function (response) {
	//     var data = response.data;
	//     var html = "";
	//     for (var i = 0; i < data.length; i++) {
	//         var nodeFlag = data[i].node_flag;
	//         var userName = data[i].user_name;
	//         var optionMsg = data[i].opinion_msg;
	//         var createTime = data[i].createTime;
	//         html += '<div class="msg-time-chat"><div class="message-body msg-in">' +
	//             '<span class="arrow"></span><div class="text">' +
	//             '<p class="attribution">';
	//         if (nodeFlag == 1) {
	//             html += '<a href="#">立项申请</a> ' + createTime + '</p>' +
	//                 '<p>' + userName + '提交了立项申请</p>';
	//         } else if (nodeFlag == 2) {
	//             html += '<a href="#">申请退回</a> ' + createTime + '</p>' +
	//                 '<p>' + userName + '退回了立项申请! 审批意见:' + optionMsg + '</p>';
	//         } else if (nodeFlag == 3) {
	//             html += '<a href="#">申请通过</a> ' + createTime + '</p>' +
	//                 '<p>' + userName + '同意了立项申请! 审批意见:' + optionMsg + '</p>';
	//         } else if (nodeFlag == 4) {
	//             html += '<a href="#">申请不通过</a> ' + createTime + '</p>' +
	//                 '<p>' + userName + '不同意立项申请! 审批意见:' + optionMsg + '</p>';
	//         } else if (nodeFlag == 5) {
	//             html += '<a href="#">立项申请</a> ' + createTime + '</p>' +
	//                 '<p>' + userName + '再次提交了立项申请</p>';
	//         } else {
	//             html += '<a href="#">商务预测</a> ' + createTime + '</p>' +
	//                 '<p>' + userName + '提交了商务预测，立项完成</p>';
	//         }
	//         html += '</div></div></div>';
	//     }
	//     $("#nodeDiv").html(html);
	// });

	$certusUtils.ajax("findLxNodeList", {
		"proId": proId
	}, function (response) {
		var html = "";
		var data = response.data;
		for (var i = 0; i < data.length; i++) {
			html += "<li><span>" + data[i].user_name + "</span><span>" + data[i].createTime + "</span>";
			if (data[i].opinion_msg == "" || data[i].opinion_msg == null || data[i].opinion_msg == undefined) {
				data[i].opinion_msg = "无";
			}
			if (data[i].node_flag == 1 || data[i].node_flag == 5) {
				html += "<span>发起申请</span>";
			}
			if (data[i].node_flag == 2) {
				html += "<span>退回，审批意见：" + data[i].opinion_msg + "</span>";
			}
			if (data[i].node_flag == 3) {
				html += "<span>同意，审批意见：" + data[i].opinion_msg + "</span>";
			}
			if (data[i].node_flag == 4) {
				html += "<span>审批不通过，审批意见：" + data[i].opinion_msg + "</span>";
			}
			if (data[i].node_flag == 6) {
				html += "<span>填写商务预测</span>";
			}
			if (data[i].node_flag == 7) {
				html += "<span>审批通过，审批意见：" + data[i].opinion_msg + "</span>"
			}
			html += "</li>";
		}
		$("#tpNode").append(html);
	});

	$certusUtils.ajax("findBugetInfo", {
		"proId": proId,
		"code": "LX"
	}, function (response) {
		// 立项信息-项目指标
		var other1Columns = [{
			id: 'buget_phase',
			title: '阶段',
			type: 'string',
			width: 75,
			columnClass: 'text-center',
		}, {
			id: 'buget_type',
			title: '预算类型',
			type: 'string',
			width: 100,
			columnClass: 'text-center',
		}, {
			id: 'buget',
			title: '预算金额',
			type: 'string',
			width: 150,
			columnClass: 'text-center',
			resolution: function (value, record, column, grid, dataNo, columnNo) {
				var content = '￥' + value + '元';
				return content;
			}
		}, {
			id: 'budget_begin',
			title: '开始时间',
			type: 'string',
			width: 100,
			columnClass: 'text-center',
			resolution: function (value, record) {
				var content = "";
				if (value != null && value != "") {
					var date = new Date(value);
					content = $.fn.dlshouwen.grid.tools.dateFormat(date, "yyyy-MM-dd");
				}
				return content;
			}
		}, {
			id: 'budget_end',
			title: '结束时间',
			type: 'string',
			width: 100,
			columnClass: 'text-center',
			resolution: function (value, record) {
				var content = "";
				if (value != null && value != "") {
					var date = new Date(value);
					content = $.fn.dlshouwen.grid.tools.dateFormat(date, "yyyy-MM-dd");
				}
				return content;
			}
		}, {
			id: 'comments',
			title: '费用说明',
			type: 'string',
			columnClass: 'text-left'
		}];
		var other1Option = {
			lang: 'zh-cn',
			ajaxLoad: false,
			extraWidth: 20,
			// loadURL:'url',
			exportFileName: '其他费用',
			datas: response.data,
			columns: other1Columns,
			gridContainer: 'other1Container',
			tools: ''
		};
		var other1Grid = $.fn.dlshouwen.grid.init(other1Option);
		other1Grid.load();
	});
}